|
500
|
How can I select a column
OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( g2antt , "MarkSearchColumn", 0);
_ObjectSetProperty( g2antt , "SingleSel", 0);
_ObjectSetProperty( g2antt , "FullRowSelect", 1);
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column1") , "Selected", -1);
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column2");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellValue(AddItem(`One`),1) = `One`");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellValue(AddItem(`Two`),1) = `Two`");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "SelectAll");
|
|
499
|
How can I avoid focusing a new cell, when user presses an arrow, page, home or end key, while the editor is opened
OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod(g2antt, "ExecuteTemplate", "DefaultEditorOption(20) = 0");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "DefaultEditorOption(21) = 0");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "DefaultEditorOption(22) = 0");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "DefaultEditorOption(23) = 0");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "DefaultEditorOption(24) = 0");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "DefaultEditorOption(25) = 0");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "DefaultEditorOption(26) = 0");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "DefaultEditorOption(27) = 0");
_ObjectSetProperty( _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor") , "EditType", 1);
_ObjectSetProperty( _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor") , "EditType", 1);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellValue(AddItem(0),1) = 1");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellValue(AddItem(2),1) = 3");
|
|
498
|
How can I expand predefined items in a drop down list editor as I type

OBJECT column,editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod( g2antt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
column = _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "DropDown");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim colObj")
_ObjectCallMethod(g2antt, "TemplatePut", column)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "colObj.Def(17) = 1");
editor = _ObjectGetProperty( column , "Editor");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim ediObj")
_ObjectCallMethod(g2antt, "TemplatePut", editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "ediObj.Option(38) = True");
_ObjectSetProperty( editor , "EditType", 3);
_ObjectSetProperty( editor , "DropDownAutoWidth", 0);
_ObjectCallMethod( editor , "AddItem", 1,"<b>CObject</b> class",1);
_ObjectCallMethod( editor , "InsertItem", 2,"<b>CCmdTarget</b> class",2,1);
_ObjectCallMethod( editor , "InsertItem", 3,"<b>CWnd</b> class",3,2);
_ObjectCallMethod( editor , "InsertItem", 6,"<bgcolor=10A0E0><fgcolor=F0F0F0>S y n c</fgcolor>",1,1);
_ObjectCallMethod( editor , "AddItem", 4,"Exceptions",1);
_ObjectCallMethod( editor , "InsertItem", 7,"<b>System</b> Exceptions",2,4);
_ObjectCallMethod( editor , "AddItem", 5,"File Services",2);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 1);
_ObjectCallMethod( items , "AddItem", 2);
|
|
497
|
How can I add an extra button to a date picker editor

OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod( g2antt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
_ObjectSetProperty( g2antt , "DefaultItemHeight", 20);
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Date") , "Editor");
_ObjectSetProperty( editor , "EditType", 7);
_ObjectCallMethod( editor , "AddButton", "B1",2,1,"This is a bit of text that's shown when the cursor hovers the button B1");
_ObjectSetProperty( editor , "ButtonWidth", 20);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 0);
_ObjectCallMethod( items , "AddItem", 1);
|
|
496
|
How can I add an extra button to a spin editor
OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod( g2antt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
_ObjectSetProperty( g2antt , "DefaultItemHeight", 20);
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Date") , "Editor");
_ObjectSetProperty( editor , "EditType", 4);
_ObjectCallMethod( editor , "AddButton", "B1",2,1,"This is a bit of text that's shown when the cursor hovers the button B1");
_ObjectSetProperty( editor , "ButtonWidth", 20);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 0);
_ObjectCallMethod( items , "AddItem", 1);
|
|
495
|
How can I remove or delete the buttons in the editor
OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod( g2antt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor");
_ObjectSetProperty( editor , "EditType", 1);
_ObjectCallMethod( editor , "AddButton", "B1",1,0,"This is a bit of text that's shown when the cursor hovers the button B1");
_ObjectCallMethod( editor , "AddButton", "B3",2,1,"This is a bit of text that's shown when the cursor hovers the button B3");
_ObjectCallMethod( editor , "AddButton", "B4",1,1,"This is a bit of text that's shown when the cursor hovers the button B4");
_ObjectCallMethod( editor , "RemoveButton", "B1");
_ObjectSetProperty( editor , "ButtonWidth", 20);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", "Text 1");
_ObjectCallMethod( items , "AddItem", "Text 2");
|
|
494
|
How can I hide the buttons in the editor
OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod( g2antt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
_ObjectSetProperty( g2antt , "DefaultItemHeight", 24);
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor");
_ObjectSetProperty( editor , "EditType", 1);
_ObjectCallMethod( editor , "AddButton", "B1",1,0,"This is a bit of text that's shown when the cursor hovers the button B1");
_ObjectCallMethod( editor , "AddButton", "B3",2,1,"This is a bit of text that's shown when the cursor hovers the button B3");
_ObjectCallMethod( editor , "AddButton", "B4",1,1,"This is a bit of text that's shown when the cursor hovers the button B4");
_ObjectSetProperty( editor , "ButtonWidth", 0);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", "Text 1");
_ObjectCallMethod( items , "AddItem", "Text 2");
|
|
493
|
How can I change the width of the buttons in the editor
OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod( g2antt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
_ObjectSetProperty( g2antt , "DefaultItemHeight", 24);
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor");
_ObjectSetProperty( editor , "EditType", 1);
_ObjectCallMethod( editor , "AddButton", "B1",1,0,"This is a bit of text that's shown when the cursor hovers the button B1");
_ObjectCallMethod( editor , "AddButton", "B3",2,1,"This is a bit of text that's shown when the cursor hovers the button B3");
_ObjectCallMethod( editor , "AddButton", "B4",1,1,"This is a bit of text that's shown when the cursor hovers the button B4");
_ObjectSetProperty( editor , "ButtonWidth", 24);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", "Text 1");
_ObjectCallMethod( items , "AddItem", "Text 2");
|
|
492
|
How can I add extra buttons to an editor
OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod( g2antt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor");
_ObjectSetProperty( editor , "EditType", 1);
_ObjectCallMethod( editor , "AddButton", "B1",1,0,"This is a bit of text that's shown when the cursor hovers the button B1");
_ObjectCallMethod( editor , "AddButton", "B2",2,0,"This is a bit of text that's shown when the cursor hovers the button B2");
_ObjectCallMethod( editor , "AddButton", "B3",3,1,"This is a bit of text that's shown when the cursor hovers the button B3");
_ObjectCallMethod( editor , "AddButton", "B4",1,1,"This is a bit of text that's shown when the cursor hovers the button B4");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", "Text 1");
_ObjectCallMethod( items , "AddItem", "Text 2");
|
|
491
|
is there any function to specify the number of rows / items being visible in a drop down list editor
OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "DropDown") , "Editor");
_ObjectSetProperty( editor , "EditType", 3);
_ObjectCallMethod( editor , "AddItem", 1,"First item");
_ObjectCallMethod( editor , "AddItem", 2,"Second item");
_ObjectCallMethod( editor , "AddItem", 3,"Third item");
_ObjectSetProperty( editor , "DropDownRows", 1);
_ObjectSetProperty( editor , "PopupAppearance", 1);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 1);
_ObjectCallMethod( items , "AddItem", 2);
|
|
490
|
How can I change the border for a drop down editor
OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Date") , "Editor");
_ObjectSetProperty( editor , "EditType", 7);
_ObjectSetProperty( editor , "PopupAppearance", 1);
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", "Today");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellEditor(AddItem(`Today`),0).EditType = 7");
|
|
489
|
How can I remove a predefined item in a drop down editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Color") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 17);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(4) = True");
_ObjectCallMethod( var_editor , "RemoveItem", 255);
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 255);
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 65280);
|
|
488
|
How can I remove or clear all predefined items in a drop down editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Color") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 17);
_ObjectCallMethod( var_editor , "ClearItems");
_ObjectCallMethod( var_editor , "AddItem", 255,"Red Color");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 255);
|
|
487
|
How can I center the predefined items in a drop down editor editor
OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "DropDown") , "Editor");
_ObjectSetProperty( editor , "EditType", 3);
_ObjectCallMethod( editor , "AddItem", 1,"First item");
_ObjectCallMethod( editor , "AddItem", 2,"Second item");
_ObjectCallMethod( editor , "AddItem", 3,"Third item");
_ObjectSetProperty( editor , "DropDownAlignment", 1);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 1);
_ObjectCallMethod( items , "AddItem", 2);
|
|
486
|
How can I right align the items in a drop down editor editor
OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "DropDown") , "Editor");
_ObjectSetProperty( editor , "EditType", 3);
_ObjectCallMethod( editor , "AddItem", 1,"First item");
_ObjectCallMethod( editor , "AddItem", 2,"Second item");
_ObjectCallMethod( editor , "AddItem", 3,"Third item");
_ObjectSetProperty( editor , "DropDownAlignment", 2);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 1);
_ObjectCallMethod( items , "AddItem", 2);
|
|
485
|
How can I specify the width of the drop down editor
OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "DropDown") , "Editor");
_ObjectSetProperty( editor , "DropDownAutoWidth", 0);
_ObjectSetProperty( editor , "DropDownMinWidth", 385);
_ObjectSetProperty( editor , "EditType", 17);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 255);
_ObjectCallMethod( items , "AddItem", 65280);
|
|
484
|
How can hide the drop down button for an editor
OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "DropDown") , "Editor");
_ObjectSetProperty( editor , "DropDownVisible", 0);
_ObjectSetProperty( editor , "EditType", 17);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 255);
_ObjectCallMethod( items , "AddItem", 65280);
|
|
483
|
How can assign a tooltip to a drop down list editor
OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "DropDown") , "Editor");
_ObjectSetProperty( editor , "EditType", 3);
_ObjectCallMethod( editor , "AddItem", 1,"First item");
_ObjectCallMethod( editor , "AddItem", 2,"Second item");
_ObjectCallMethod( editor , "AddItem", 3,"Third item");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim ediObj")
_ObjectCallMethod(g2antt, "TemplatePut", editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "ediObj.ItemToolTip(1) = `This is a tooltip that shows when user hovers the <b>first</b> item`");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "ediObj.ItemToolTip(2) = `This is a tooltip that shows when user hovers the <b>second</b> item`");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "ediObj.ItemToolTip(3) = `This is a tooltip that shows when user hovers the <b>third</b> item`");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 1);
_ObjectCallMethod( items , "AddItem", 2);
|
|
482
|
How can I lock, disable make read only an editor
OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "DropDown") , "Editor");
_ObjectSetProperty( editor , "Locked", -1);
_ObjectSetProperty( editor , "EditType", 3);
_ObjectCallMethod( editor , "AddItem", 1,"First item");
_ObjectCallMethod( editor , "AddItem", 2,"Second item");
_ObjectCallMethod( editor , "AddItem", 3,"Third item");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 1);
_ObjectCallMethod( items , "AddItem", 2);
|
|
481
|
How can I sort the items in a drop down list editor
OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "DropDown") , "Editor");
_ObjectSetProperty( editor , "EditType", 3);
_ObjectCallMethod( editor , "AddItem", 1,"Second item");
_ObjectCallMethod( editor , "AddItem", 2,"First item");
_ObjectCallMethod( editor , "AddItem", 3,"Third item");
_ObjectCallMethod( editor , "SortItems", -1);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 1);
_ObjectCallMethod( items , "AddItem", 2);
|
|
480
|
How can I expand an item in the tree or a hierarchy of a drop down editor
OBJECT column,editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod( g2antt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
column = _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "DropDown");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim colObj")
_ObjectCallMethod(g2antt, "TemplatePut", column)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "colObj.Def(17) = 1");
editor = _ObjectGetProperty( column , "Editor");
_ObjectSetProperty( editor , "EditType", 3);
_ObjectSetProperty( editor , "DropDownAutoWidth", 0);
_ObjectCallMethod( editor , "AddItem", 1,"<b>CObject</b> class",1);
_ObjectCallMethod( editor , "InsertItem", 2,"<b>CCmdTarget</b> class",2,1);
_ObjectCallMethod( editor , "InsertItem", 3,"<b>CWnd</b> class",3,2);
_ObjectCallMethod( editor , "InsertItem", 6,"<bgcolor=10A0E0><fgcolor=F0F0F0>S y n c</fgcolor>",1,1);
_ObjectCallMethod( editor , "AddItem", 4,"Exceptions",1);
_ObjectCallMethod( editor , "InsertItem", 7,"<b>System</b> Exceptions",2,4);
_ObjectCallMethod( editor , "AddItem", 5,"File Services",2);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim ediObj")
_ObjectCallMethod(g2antt, "TemplatePut", editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "ediObj.ExpandItem(1) = True");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 1);
_ObjectCallMethod( items , "AddItem", 2);
|
|
479
|
How can I display a tree or a hierarchy in a drop down editor
OBJECT column,editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod( g2antt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
column = _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "DropDown");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim colObj")
_ObjectCallMethod(g2antt, "TemplatePut", column)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "colObj.Def(17) = 1");
editor = _ObjectGetProperty( column , "Editor");
_ObjectSetProperty( editor , "EditType", 3);
_ObjectSetProperty( editor , "DropDownAutoWidth", 0);
_ObjectCallMethod( editor , "AddItem", 1,"<b>CObject</b> class",1);
_ObjectCallMethod( editor , "InsertItem", 2,"<b>CCmdTarget</b> class",2,1);
_ObjectCallMethod( editor , "InsertItem", 3,"<b>CWnd</b> class",3,2);
_ObjectCallMethod( editor , "InsertItem", 6,"<bgcolor=10A0E0><fgcolor=F0F0F0>S y n c</fgcolor>",1,1);
_ObjectCallMethod( editor , "AddItem", 4,"Exceptions",1);
_ObjectCallMethod( editor , "InsertItem", 7,"<b>System</b> Exceptions",2,4);
_ObjectCallMethod( editor , "AddItem", 5,"File Services",2);
_ObjectCallMethod( editor , "ExpandAll");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 1);
_ObjectCallMethod( items , "AddItem", 2);
|
|
478
|
How can I look for items that includes the typed characters in a drop down list editor
OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "DropDown") , "Editor");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim ediObj")
_ObjectCallMethod(g2antt, "TemplatePut", editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "ediObj.Option(39) = 1");
_ObjectSetProperty( editor , "EditType", 3);
_ObjectCallMethod( editor , "AddItem", 1,"First item");
_ObjectCallMethod( editor , "AddItem", 2,"Second item");
_ObjectCallMethod( editor , "AddItem", 3,"Third item");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 1);
_ObjectCallMethod( items , "AddItem", 2);
|
|
477
|
How can I keep the selection background color while editor is visible

OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( g2antt , "SelBackColor", 255);
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "DropDown") , "Editor");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim ediObj")
_ObjectCallMethod(g2antt, "TemplatePut", editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "ediObj.Option(45) = True");
_ObjectSetProperty( editor , "EditType", 3);
_ObjectCallMethod( editor , "AddItem", 1,"First item");
_ObjectCallMethod( editor , "AddItem", 2,"Second item");
_ObjectCallMethod( editor , "AddItem", 3,"Third item");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 1);
_ObjectCallMethod( items , "AddItem", 2);
|
|
476
|
How can I select from a drop down list the editor, when the user starts typing in the editor, while it is closed and focused
OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod( g2antt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "DropDown") , "Editor");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim ediObj")
_ObjectCallMethod(g2antt, "TemplatePut", editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "ediObj.Option(37) = 1");
_ObjectSetProperty( editor , "EditType", 3);
_ObjectCallMethod( editor , "AddItem", 1,"First item",1);
_ObjectCallMethod( editor , "AddItem", 2,"Second item",3);
_ObjectCallMethod( editor , "AddItem", 3,"Third item",2);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 1);
_ObjectCallMethod( items , "AddItem", 2);
|
|
475
|
How can I automatically drop down the list editor, when the user starts typing in the editor
OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod( g2antt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "DropDown") , "Editor");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim ediObj")
_ObjectCallMethod(g2antt, "TemplatePut", editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "ediObj.Option(37) = -1");
_ObjectSetProperty( editor , "EditType", 3);
_ObjectCallMethod( editor , "AddItem", 1,"First item",1);
_ObjectCallMethod( editor , "AddItem", 2,"Second item",3);
_ObjectCallMethod( editor , "AddItem", 3,"Third item",2);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 1);
_ObjectCallMethod( items , "AddItem", 2);
|
|
474
|
How can I add a Font editor
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Font") , "Editor") , "EditType", 10);
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", "Tahoma");
|
|
473
|
How can I change the visual appearance for the buttons in the calculator editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Slider") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 21);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(105) = Me.ExecuteTemplate(`loadpicture(`c:\exontrol\images\colorize.gif`)`)");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(106) = Me.ExecuteTemplate(`loadpicture(`c:\exontrol\images\auction.gif`)`)");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 10);
|
|
472
|
How can I customize the caption of buttons in the calculator editor

OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Slider") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 21);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(104) = `0;1;2;3;4;5;6;7;8;9;<b>+</b>;<fgcolor=FF0000>=</fgcolor>`");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 10);
|
|
471
|
How can I customize the caption of buttons in the calculator editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Slider") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 21);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(104) = `0;1;2;3;4;5;6;7;8;9`");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 10);
|
|
470
|
How can I specify the width and height of the buttons in the calculator editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Slider") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 21);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(102) = 32");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(103) = 32");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 10);
|
|
469
|
How can I change the "Cannot divide by zero" message that shows in the calculator editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Slider") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 21);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(101) = `Divizion by zero`");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 10);
|
|
468
|
How can I enable or disable executing operations while the calculator editor is focused and closed
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Slider") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 21);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(100) = False");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 10);
|
|
467
|
How can I add a calculator editor

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Slider") , "Editor") , "EditType", 21);
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 10);
|
|
466
|
How can I edit a number between a range or interval
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Slider") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 20);
_ObjectSetProperty( var_editor , "Numeric", -1);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(40) = 0");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(41) = 0");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(43) = 5");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(44) = 15");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 10);
|
|
465
|
How can I hide or show the spin in the slider or track bar editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Slider") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 20);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(40) = 0");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 10);
|
|
464
|
How can I add a slider or track bar editor, with a fixed size
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Slider") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 20);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(41) = 64");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 10);
|
|
463
|
How can I add a slider or track bar editor, so it covers half of the cell
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Slider") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 20);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(41) = -50");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 10);
|
|
462
|
How can I add a slider or track bar editor, so it covers the full cell
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Slider") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 20);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(41) = -100");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 10);
|
|
461
|
How can I add a slider or track bar editor within a range or interval of numbers
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Spin from 5 to 15") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 20);
_ObjectSetProperty( var_editor , "Numeric", -1);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(43) = 5");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(44) = 15");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 10);
|
|
460
|
How can I add a slider or track bar editor within a range or interval of float numbers
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Spin from 5 to 15") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 20);
_ObjectSetProperty( var_editor , "Numeric", 1);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(43) = 0");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(44) = 1");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(40) = `0.01`");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(42) = `0.01`");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", "0.3");
|
|
459
|
How can I add a spin editor within a range or interval of float numbers
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Spin from 5 to 15") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 20);
_ObjectSetProperty( var_editor , "Numeric", 1);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(41) = 0");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(43) = 0");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(44) = 1");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(40) = `0.01`");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", "0.3");
|
|
458
|
How can I add a spin editor within a range or interval of numbers
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Spin from 5 to 15") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 20);
_ObjectSetProperty( var_editor , "Numeric", -1);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(41) = 0");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(43) = 5");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(44) = 15");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 10);
|
|
457
|
How can I add a slider or track bar editor
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Slider") , "Editor") , "EditType", 20);
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 10);
|
|
456
|
I have check box column, but the check-boxes looks disabled. What can I do
OBJECT g2antt,items,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Check") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 19);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(17) = 1");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 0);
_ObjectCallMethod( items , "AddItem", -1);
_ObjectCallMethod( items , "AddItem", 0);
|
|
455
|
How do I add check box column, so the cell value is changed as I click the cells
OBJECT column,editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( g2antt , "MarkSearchColumn", 0);
column = _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "C");
_ObjectSetProperty( column , "Width", 18);
_ObjectSetProperty( column , "AllowSizing", 0);
editor = _ObjectGetProperty( column , "Editor");
_ObjectSetProperty( editor , "EditType", 19);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim ediObj")
_ObjectCallMethod(g2antt, "TemplatePut", editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "ediObj.Option(17) = 1");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Text");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellValue(AddItem(False),1) = `Check 1`");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellValue(AddItem(True),1) = `Check 2`");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellValue(AddItem(False),1) = `Check 3`");
|
|
454
|
How do I add check box column, so the cell value is changed as I click the cells
OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Check") , "Editor") , "EditType", 19);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 0);
_ObjectCallMethod( items , "AddItem", -1);
_ObjectCallMethod( items , "AddItem", 0);
|
|
453
|
How do I disable adding new lines using the ENTER key in a memo or a multiple lines edit control

OBJECT g2antt,items,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 18);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(9) = False");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellSingleLine(AddItem(`This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the line, and get it displayed on multiple lines.`),0) = False");
|
|
452
|
How do I add a vertical scroll bar for a memo or a multiple lines edit control
OBJECT g2antt,items,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 18);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(2) = True");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellSingleLine(AddItem(`This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the line, and get it displayed on multiple lines.`),0) = False");
|
|
451
|
How do I add a horizontal scroll bar for a memo or a multiple lines edit control
OBJECT g2antt,items,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 18);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(1) = True");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellSingleLine(AddItem(`This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the line, and get it displayed on multiple lines.`),0) = False");
|
|
450
|
How can I specify the width or the height for a drop down memo or a multiple lines edit control
OBJECT g2antt,items,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 18);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(7) = 256");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(8) = 64");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellSingleLine(AddItem(`This is a long text that should break the line, and get it displayed on multiple lines.`),0) = False");
|
|
449
|
How do I add a drop down memo or a multiple lines edit control
OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor") , "EditType", 18);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellSingleLine(AddItem(`This is a long text that should break the line, and get it displayed on multiple lines.`),0) = False");
|
|
448
|
How do I add a color list editor with my own or custom colors
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Color") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 17);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(4) = True");
_ObjectCallMethod( var_editor , "ClearItems");
_ObjectCallMethod( var_editor , "AddItem", 255,"Red Color");
_ObjectCallMethod( var_editor , "AddItem", 16711680,"Blue Color");
_ObjectCallMethod( var_editor , "AddItem", 65280,"Green Color");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 255);
|
|
447
|
How do I add a color list editor with my own or custom colors

OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Color") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 17);
_ObjectCallMethod( var_editor , "ClearItems");
_ObjectCallMethod( var_editor , "AddItem", 255,"Red Color");
_ObjectCallMethod( var_editor , "AddItem", 16711680,"Blue Color");
_ObjectCallMethod( var_editor , "AddItem", 65280,"Green Color");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 255);
|
|
446
|
How can I show the color's name in a color list editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Color") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 17);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(4) = True");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 255);
|
|
445
|
How do I add a color list editor
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Color") , "Editor") , "EditType", 17);
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 255);
|
|
444
|
How can I access my own custom or ActiveX editor

OBJECT calendar,editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( g2antt , "DrawGridLines", -1);
_ObjectSetProperty( g2antt , "DefaultItemHeight", 128);
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "DropDown") , "Editor");
_ObjectSetProperty( editor , "EditType", 16);
_ObjectCallMethod( editor , "UserEditor", "MSCAL.Calendar","");
calendar = _ObjectGetProperty( editor , "UserEditorObject");
_ObjectSetProperty( calendar , "BackColor", 16777215);
_ObjectSetProperty( calendar , "GridCellEffect", 0);
_ObjectSetProperty( calendar , "ShowTitle", 0);
_ObjectSetProperty( calendar , "ShowDateSelectors", 0);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", "MSCal.Calendar");
_ObjectCallMethod( items , "AddItem", "MSCal.Calendar");
|
|
443
|
How can I add my own custom or ActiveX editor
OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( g2antt , "DrawGridLines", -1);
_ObjectSetProperty( g2antt , "DefaultItemHeight", 128);
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "DropDown") , "Editor");
_ObjectSetProperty( editor , "EditType", 16);
_ObjectCallMethod( editor , "UserEditor", "MSCAL.Calendar","");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", "MSCal.Calendar");
_ObjectCallMethod( items , "AddItem", "MSCal.Calendar");
|
|
442
|
How can I add a hyperlink editor
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Shell.Execute") , "Editor") , "EditType", 15);
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", "http://www.exontrol.com");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", "c:\");
|
|
441
|
How can I add a drop down editor, that allows only predefined values, but still being able to edit and select

OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod( g2antt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "DropDown") , "Editor");
_ObjectSetProperty( editor , "EditType", 14);
_ObjectCallMethod( editor , "AddItem", 1,"The first item",1);
_ObjectCallMethod( editor , "AddItem", 2,"The second item",3);
_ObjectCallMethod( editor , "AddItem", 3,"The third item",2);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", "The first item");
_ObjectCallMethod( items , "AddItem", "The third item");
|
|
440
|
How can I show or hide the rectangle arround progress bar editor

OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( g2antt , "SelForeColor", 0);
_ObjectSetProperty( g2antt , "SelBackColor", 16777088);
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Progress") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 13);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(13) = False");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 33);
|
|
439
|
How can I hide the caption / percent in the progress bar editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( g2antt , "SelForeColor", 0);
_ObjectSetProperty( g2antt , "SelBackColor", 16777088);
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Progress") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 13);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(12) = -1");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 33);
|
|
438
|
How can I align the caption in the center of the progress bar editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( g2antt , "SelForeColor", 0);
_ObjectSetProperty( g2antt , "SelBackColor", 16777088);
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Progress") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 13);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(12) = 1");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 33);
|
|
437
|
How can I align the caption to the right in the progress bar editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( g2antt , "SelForeColor", 0);
_ObjectSetProperty( g2antt , "SelBackColor", 16777088);
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Progress") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 13);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(12) = 2");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 33);
|
|
436
|
How can I change the background color for a progress bar editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( g2antt , "SelForeColor", 0);
_ObjectSetProperty( g2antt , "SelBackColor", 16777088);
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Progress") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 13);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(11) = 255");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 33);
|
|
435
|
How can I add a progress bar editor
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( g2antt , "SelForeColor", 0);
_ObjectSetProperty( g2antt , "SelBackColor", 16777088);
_ObjectSetProperty( _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Progress") , "Editor") , "EditType", 13);
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 33);
|
|
434
|
How can I add a button editor
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Button") , "Editor") , "EditType", 12);
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", "Just a text");
|
|
433
|
How can I show or hide the type of the OLE Object for Photo or a Picture editor

OBJECT column,editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( g2antt , "ColumnAutoResize", 0);
column = _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Photo");
_ObjectSetProperty( column , "Width", 74);
editor = _ObjectGetProperty( column , "Editor");
_ObjectSetProperty( editor , "EditType", 11);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim ediObj")
_ObjectCallMethod(g2antt, "TemplatePut", editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "ediObj.Option(52) = False");
items = _ObjectGetProperty( g2antt , "Items");
h = _ObjectCallMethod( items , "AddItem", );
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod(g2antt, "TemplatePut", h)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellValue(h,0) = Me.ExecuteTemplate(`loadpicture(`c:\exontrol\images\sample.bmp`)`)");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.ItemHeight(h) = 64");
|
|
432
|
How can I add a Photo or a Picture editor

OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Photo") , "Editor") , "EditType", 11);
items = _ObjectGetProperty( g2antt , "Items");
h = _ObjectCallMethod( items , "AddItem", );
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod(g2antt, "TemplatePut", h)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellValue(h,0) = Me.ExecuteTemplate(`loadpicture(`c:\exontrol\images\sample.bmp`)`)");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.ItemHeight(h) = 64");
|
|
431
|
How can I hide or show the "System" page in the color editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Color") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 9);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(6) = False");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 255);
|
|
430
|
How can I hide or show the "Palette" page in the color editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Color") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 9);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(5) = False");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 255);
|
|
429
|
How do I add a color editor

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Color") , "Editor") , "EditType", 9);
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", 255);
|
|
428
|
How do I change the masking character
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Mask") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 8);
_ObjectSetProperty( var_editor , "Mask", "###");
_ObjectSetProperty( var_editor , "MaskChar", 48);
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", "");
|
|
427
|
How do I mask an IP
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "IP") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 8);
_ObjectSetProperty( var_editor , "Mask", "{0,255}\.{0,255}\.{0,255}\.{0,255}");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", "1.2.3.4");
|
|
426
|
How do I add a mask editor

OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Mask") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 8);
_ObjectSetProperty( var_editor , "Mask", "{0,255}\.{0,255}\.{0,255}\.{0,255}");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", "1.2.3.4");
|
|
425
|
How to show or hide the week numbers header in a drop down date picker calendar editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Date") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 7);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(47) = True");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", "Today");
|
|
424
|
How do I show or hide the bottom scroll bar in the drop down date picker calendar editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Date") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 7);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(35) = False");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", "Today");
|
|
423
|
How do highlight the "Today" date is the drop down date picker calendar editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Date") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 7);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(34) = True");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", "Today");
|
|
422
|
How do I show or hide the "Today" button is the drop down date picker calendar editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Date") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 7);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(33) = False");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", "Today");
|
|
421
|
How to specify the first day of the week in the drop down date picker calendar editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Date") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 7);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(32) = 1");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", "Today");
|
|
420
|
How to specifies the shortcut for the weekdays to be displayed in the drop down date picker calendar editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Date") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 7);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(31) = `Du Lu Ma Mi Jo Vi Si`");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", "Today");
|
|
419
|
How can I change the name of the months in the drop down date picker calendar editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Date") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 7);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(30) = `Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre`");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", "Today");
|
|
418
|
Can I change the "Today" caption being displayed in the drop down date picker calendar editor
OBJECT g2antt,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Date") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 7);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(29) = `Azi`");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "AddItem", "Today");
|
|
417
|
How can allow empty date to drop down date picker control or a calendar control

OBJECT g2antt,items,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Date") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 7);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(14) = True");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", "5/12/2012");
_ObjectCallMethod( items , "AddItem", "");
_ObjectCallMethod( items , "AddItem", "5/14/2012");
|
|
416
|
How can I a drop down date picker control or a calendar control
OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Date") , "Editor") , "EditType", 7);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", "Today");
|
|
415
|
How can I have an OR combination of my bit values, something like a check-box list editor

OBJECT column,editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
column = _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "CkeckList");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim colObj")
_ObjectCallMethod(g2antt, "TemplatePut", column)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "colObj.Def(17) = 1");
editor = _ObjectGetProperty( column , "Editor");
_ObjectSetProperty( editor , "EditType", 6);
_ObjectCallMethod( editor , "AddItem", 1,"Bit <b>1</b>");
_ObjectCallMethod( editor , "AddItem", 2,"Bit <b>2</b>");
_ObjectCallMethod( editor , "AddItem", 4,"Bit <b>3</b>");
_ObjectCallMethod( editor , "AddItem", 8,"Bit <b>4</b>");
_ObjectCallMethod( editor , "AddItem", 16,"Bit <b>5</b>");
_ObjectCallMethod( editor , "AddItem", 32,"Bit <b>6</b>");
_ObjectCallMethod( editor , "AddItem", 64,"Bit <b>7</b>");
_ObjectCallMethod( editor , "AddItem", 128,"Bit <b>8</b>");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 112);
_ObjectCallMethod( items , "AddItem", 2);
|
|
414
|
How do I stop resizing the memo or a multiple lines edit control, while the user types
OBJECT g2antt,items,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 5);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(3) = False");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(1) = True");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(2) = True");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellSingleLine(AddItem(`This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the line, and get it displayed on multiple lines.`),0) = False");
|
|
413
|
How do I add a horizontal scroll bar for a memo or a multiple lines edit control
OBJECT g2antt,items,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 5);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(1) = True");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellSingleLine(AddItem(`This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the line, and get it displayed on multiple lines.`),0) = False");
|
|
412
|
How do I add a vertical scroll bar for a memo or a multiple lines edit control
OBJECT g2antt,items,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 5);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(2) = True");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellSingleLine(AddItem(`This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the line, and get it displayed on multiple lines.`),0) = False");
|
|
411
|
How do I add a memo or a multiple lines edit control
OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor") , "EditType", 5);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellSingleLine(AddItem(`This is a long text that should break the line, and get it displayed on multiple lines.`),0) = False");
|
|
410
|
How to specify the proposed change when the user clicks a spin control.
OBJECT g2antt,items,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 4);
_ObjectSetProperty( var_editor , "Numeric", -1);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(40) = 10");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 0);
_ObjectCallMethod( items , "AddItem", 10);
_ObjectCallMethod( items , "AddItem", 20);
|
|
409
|
How do I add a spin editor that allows only integer values
OBJECT g2antt,items,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 4);
_ObjectSetProperty( var_editor , "Numeric", -1);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 0);
_ObjectCallMethod( items , "AddItem", 1);
_ObjectCallMethod( items , "AddItem", 2);
|
|
408
|
How do I add a spin editor
OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor") , "EditType", 4);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 0);
_ObjectCallMethod( items , "AddItem", 1);
_ObjectCallMethod( items , "AddItem", 2);
|
|
407
|
How do I specify in a drop down list editor, that I do not want to have predefined icon
OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod( g2antt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "DropDown") , "Editor");
_ObjectSetProperty( editor , "EditType", 3);
_ObjectCallMethod( editor , "AddItem", 1,"The first item",1);
_ObjectCallMethod( editor , "AddItem", 2,"The second item",3);
_ObjectCallMethod( editor , "AddItem", 3,"The third item",2);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim ediObj")
_ObjectCallMethod(g2antt, "TemplatePut", editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "ediObj.Option(28) = False");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 1);
_ObjectCallMethod( items , "AddItem", 2);
|
|
406
|
How do I add a drop down editor, that allows only predefined values
OBJECT editor,g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod( g2antt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "DropDown") , "Editor");
_ObjectSetProperty( editor , "EditType", 3);
_ObjectCallMethod( editor , "AddItem", 1,"The first item",1);
_ObjectCallMethod( editor , "AddItem", 2,"The second item",3);
_ObjectCallMethod( editor , "AddItem", 3,"The third item",2);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", 1);
_ObjectCallMethod( items , "AddItem", 2);
|
|
405
|
How to allow the editor to work on insert or overtype mode
OBJECT g2antt,items,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 1);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(200) = True");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(201) = True");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", "000");
_ObjectCallMethod( items , "AddItem", "111");
_ObjectCallMethod( items , "AddItem", "222");
|
|
404
|
How to set foreground color for a locked, or read only edit control
OBJECT g2antt,items,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 1);
_ObjectSetProperty( var_editor , "Locked", -1);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(51) = 8421504");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", "000");
_ObjectCallMethod( items , "AddItem", "111");
_ObjectCallMethod( items , "AddItem", "222");
|
|
403
|
How to set background color for a locked, or read only edit control
OBJECT g2antt,items,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 1);
_ObjectSetProperty( var_editor , "Locked", -1);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(50) = 8421504");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", "000");
_ObjectCallMethod( items , "AddItem", "111");
_ObjectCallMethod( items , "AddItem", "222");
|
|
402
|
How to set the number of characters selected, when an EditType editor is opened
OBJECT g2antt,items,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 1);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(49) = 1");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", "000");
_ObjectCallMethod( items , "AddItem", "111");
_ObjectCallMethod( items , "AddItem", "222");
|
|
401
|
How to set the starting point of text selected, when an EditType editor is opened
OBJECT g2antt,items,var_editor;
g2antt = ObjectByName("AN1") ;
var_Editor = _ObjectGetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Edit") , "Editor");
var_editor = var_Editor;
_ObjectSetProperty( var_editor , "EditType", 1);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim varObj")
_ObjectCallMethod(g2antt, "TemplatePut", var_editor)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(48) = 1");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "varObj.Option(49) = 1");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", "000");
_ObjectCallMethod( items , "AddItem", "111");
_ObjectCallMethod( items , "AddItem", "222");
|